package com.atguigu04.override;


public class overridetest {
    public static void main(String[] args) {
        Student student=new Student();
        student.eat();
        Person person=new Student();
        person.eat();
        //Student student1=new Person();报错

    }
}
